﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
using FrameWork.Context;

namespace MyDb.DoMain.Entity.DbEntity
{
    public class T_UserRole : ModelBase
    {

        /// <summary>
        /// 用户id 
        /// </summary>
        public int UserId {get;set;}

        /// <summary>
        /// 角色id 
        /// </summary>
        public int RoleId {get;set;}

        /// <summary>
        /// - 
        /// </summary>
        public Boolean IsUsed {get;set;}

        /// <summary>
        /// - 
        /// </summary>
        public Boolean IsDel {get;set;}

        /// <summary>
        /// 修改人 
        /// </summary>
        public int EditUserId {get;set;}

        /// <summary>
        /// 修改时间 
        /// </summary>
        public DateTime EditTime {get;set;}

        /// <summary>
        /// 创建人 
        /// </summary>
        public int CreateUserId {get;set;}

        /// <summary>
        /// - 
        /// </summary>
        public DateTime CreateTime {get;set;}

        /// <summary>
        /// 用户实体
        /// </summary>
        [ForeignKey("UserId")]
        public T_User User { set; get; }

    }
}
